package com.forekenow.Demo4;

public class Penguins extends Pet{

    @Override
    public void toHospital() {
        this.setHealth(50);
    }

    @Override
    public void eat() {
        System.out.println("das");
    }

    public void swimming(){
        System.out.println("swimming。。");
    }
}
